package com.alipay.sofa.award.record.common.dal.dataobject;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class AwardRecord {

    private static final String FORMAT_PATTERN = "yyyy-MM-dd HH:mm:ss";

    private Integer             id;

    private String              activityTime;

    private String              rank;

    private String              awardContent;

    private String              awardCode;

    private String              nickName;

    private String              userId;

    @JSONField(format = FORMAT_PATTERN)
    private Date                awardTime;

    @JSONField(format = FORMAT_PATTERN)
    private Date                awardDeadlineTime;

    private String              avatar;

    private String              awardDesc;

    private boolean             valid          = true;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActivityTime() {
        return activityTime;
    }

    public void setActivityTime(String activityTime) {
        this.activityTime = activityTime;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getAwardContent() {
        return awardContent;
    }

    public void setAwardContent(String awardContent) {
        this.awardContent = awardContent;
    }

    public String getAwardCode() {
        return awardCode;
    }

    public void setAwardCode(String awardCode) {
        this.awardCode = awardCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getAwardTime() {
        return awardTime;
    }

    public void setAwardTime(Date awardTime) {
        this.awardTime = awardTime;
    }

    public Date getAwardDeadlineTime() {
        return awardDeadlineTime;
    }

    public void setAwardDeadlineTime(Date awardDeadlineTime) {
        this.awardDeadlineTime = awardDeadlineTime;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAwardDesc() {
        return awardDesc;
    }

    public void setAwardDesc(String awardDesc) {
        this.awardDesc = awardDesc;
    }

    public boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    @Override
    public String toString() {
        return "AwardRecord{" + "id=" + id + ", activityTime='" + activityTime + '\'' + ", rank='"
               + rank + '\'' + ", awardContent='" + awardContent + '\'' + ", awardCode='"
               + awardCode + '\'' + ", nickName='" + nickName + '\'' + ", userId='" + userId + '\''
               + ", awardTime=" + awardTime + ", awardDeadlineTime=" + awardDeadlineTime
               + ", avatar='" + avatar + '\'' + ", awardDesc='" + awardDesc + '\'' + ", valid="
               + valid + '}';
    }
}